{% extends "sitenews/base.html" %}

{% block title %}お知らせ一覧 - {{ current_site.name }}{% endblock %}

{% block content %}
    <div class="div_alpha14">
    <h2 class="h2_alpha02">お知らせ一覧</h2>
    <div class="div_alpha14_inner">
    
    <ul class="ul02">
        {% for sitenews in page_obj.object_list %}
            <li class="sitenews">
                {{ sitenews.published_at|date:"n月j日" }}
                {% if sitenews.has_detail %}
                    <a href="{% url sitenews-show news_id=sitenews.id %}">{{ sitenews.title }}</a>
                {% else %}
                    {{ sitenews.title }}
                {% endif %}
            </li>
        {% endfor %}
    </ul>
    
    </div>
    </div>
    
    {% include "paginator.html" %}
{% endblock %}